package interfaceTest;
public class CreditCardPayment implements Payment{
    @Override
    public void pay(double amount) {
        System.out.println("使用信用卡支付了 ¥" + amount);
    }
}
